const { Counter } = require('./counter');

const args = process.argv.slice(2);
const options = {};

args.forEach(arg => {
    if (arg.startsWith('--')) {
        const [key, value] = arg.slice(2).split('=');
        options[key] = value || true;
    }
});

const counter = new Counter(options);
counter.count();
